<%--
  User: 19079,Date: 2020/12/17,time: 17:57
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <title>系统配置</title>
    <base href="<%=request.getContextPath()%>/">
    <link rel="stylesheet" href="webjars/layui/2.5.5/css/layui.css">
</head>
<body>
<%--修改和删除按钮--%>
<script type="text/html" id="barDemo">
    <a class="layui-btn layui-btn-xs" lay-event="update">编辑</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</script>
<div>
    <table id="con" lay-filter="con"></table>
</div>
<div>
    <table id="cc" lay-filter="cc"></table>
</div>
</body>
<script src="webjars/layui/2.5.5/layui.js"></script>
<script>
    layui.use(['table'],function () {
        let table=layui.table;
        table.render({
            elem:"#con",
            even:true,
            url:"",
            cols:[[
                {title:"配置类型编码",field:"configcode"},
                {title:"配置类型名称",field:"configname"},
                {title:"是否启用",templet:function (row) {
                        return row.isstart==1?"启用":"禁用";
                    }},
                {title: "操作",toolbar: "#barDemo"}
            ]]
        })
    })
</script>
</html>
